package com.solo.eggsolo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.solo.eggsolo.entity.Album;
import com.solo.eggsolo.entity.Singer;
import com.solo.eggsolo.mapper.AlbumMapper;
import com.solo.eggsolo.service.AlbumService;

/**
 * 
 * @author Yu
 *
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class AlbumServiceImpl extends BaseServiceImpl<Album> implements AlbumService {
	@Autowired
	private AlbumMapper albumMapper;

	@Override
	public List<Album> findByName(String albumName) {
		return albumMapper.findByName(albumName);
	}

	@Override
	public List<Album> findBySinger(String singerid) {
		return albumMapper.findBySinger(singerid);
	}

}